﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sponsors/SponsorMaster.Master"
    AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="Nivdal.Sponsors.ChangePassword" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="ErrorLabel" CssClass="errorLabel" runat="server" Text=""></asp:Label>
    <br />
    <br />
    <div>
        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
            <asp:View ID="View1" runat="server">
                <table cellpadding="4" cellspacing="4">
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="ChangePasswordTitleLabel" runat="server" CssClass="bigTitleLabel"
                                Text="<%$ Resources:SponsorsResource, NewSponsor_ChangePassword %>"></asp:Label>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="OldPasswordTitleLabel" runat="server" CssClass="smallTitleLabel" Text="<%$ Resources:SponsorsResource, NewSponsor_OldPassword %>"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="OldPasswordTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="OldPasswordRequired" runat="server" ControlToValidate="OldPasswordTextBox"
                                Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_OldPasswordRequire %>"
                                ValidationGroup="PasswordChangeWizard"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="NewPasswordTitleLabel" runat="server" CssClass="smallTitleLabel" Text="<%$ Resources:SponsorsResource, NewSponsor_NewPassword %>"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="NewPasswordTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RegularExpressionValidator ID="valPassword" runat="server" ControlToValidate="NewPasswordTextBox"
                                ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_MinPassLength %>" ValidationExpression=".{5}.*"
                                ValidationGroup="PasswordChangeWizard" />
                            <cc1:PasswordStrength ID="Passwordstrength1" runat="server" PrefixText="<%$ Resources:SponsorsResource, NewSponsor_Register_Strength %>"
                                TextStrengthDescriptionStyles="VeryPoor; Weak; Average; Strong; Excellent" DisplayPosition="RightSide"
                                MinimumNumericCharacters="1" MinimumSymbolCharacters="1" PreferredPasswordLength="8"
                                TextStrengthDescriptions="<%$ Resources:SponsorsResource, NewSponsor_Register_PasswordStrength %>"
                                TargetControlID="NewPasswordTextBox">
                            </cc1:PasswordStrength>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="ConfirmNewPasswordTitleLabel" runat="server" CssClass="smallTitleLabel"
                                Text="<%$ Resources:SponsorsResource, NewSponsor_ConfirmNewPassword %>"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="ConfirmNewPasswordTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequiredFieldValidator" runat="server"
                                ControlToValidate="ConfirmNewPasswordTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_ConfirmNewPasswordRequire %>"
                                ValidationGroup="PasswordChangeWizard"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <asp:CompareValidator ID="compval" Display="Static" ControlToValidate="NewPasswordTextBox"
                                ControlToCompare="ConfirmNewPasswordTextBox" ForeColor="red" BackColor="yellow"
                                Type="String" Text="<%$ Resources:SponsorsResource, NewSponsor_ConfirmPasswordNotMatch %>" ValidationGroup="PasswordChangeWizard"
                                runat="server" />
                        </td>
                    </tr>
                </table>
            </asp:View>
            <asp:View ID="View2" runat="server">
                <asp:Label ID="PasswordWasChangedTitleLabel1" runat="server" CssClass="smallTitleLabel"
                    Text="<%$ Resources:SponsorsResource, NewSponsor_PasswordWasChanged %>"></asp:Label>
            </asp:View>
        </asp:MultiView>
        <%--<asp:Button ID="btnBack" runat="server" Text="&lt; Back " OnClick="btnBack_Click" />--%>
        <asp:Button ID="btnNext" runat="server" Text="Send" OnClick="btnNext_Click" ValidationGroup="PasswordChangeWizard" />
        <%--<asp:Button ID="btnSend" runat="server" Text="Send" OnClick="btnSend_Click" ValidationGroup="PasswordChangeWizard" />--%>
    </div>
    <br />
    <br />
    <asp:Button ID="ResetButton" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_Reset %>"
        OnClick="ResetButton_Click" />
</asp:Content>
